<script setup lang="ts">
import styles from "./blockTitle.less";

const props = defineProps<{
  title: string;
}>();

const emits = defineEmits(["more"]);

const { title } = props;

const handleToMore = () => {  
  emits("more");
};
</script>

<template>
  <view :class="styles.blockTitleContainer">
    <view :class="styles.text">{{ title }}</view>
    <view :class="styles.more" @tap="handleToMore">查看更多</view>
  </view>
</template>
